how to solve questions on logarithms